:root {
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;

  --cui-grey-9: 28, 31, 35;

  --cui-color-bg-0: rgba(255, 255, 255, 1);
  --cui-color-bg-1: rgba(255, 255, 255, 1);
  --cui-color-bg-2: rgba(255, 255, 255, 1);
  --cui-color-bg-3: rgba(255, 255, 255, 1);
  --cui-color-bg-4: rgba(255, 255, 255, 1);

  --cui-color-text-0: rgba(var(--cui-grey-9), 1);
  --cui-color-text-1: rgba(var(--cui-grey-9), .8);
  --cui-color-text-2: rgba(var(--cui-grey-9), .62);
  --cui-color-text-3: rgba(var(--cui-grey-9), .35);
}

body[theme-mod='dark'] {
  --cui-grey-9: 249, 249, 249;

  --cui-color-bg-0: #16161a;
  --cui-color-bg-1: #232429;
  --cui-color-bg-2: #35363c;
  --cui-color-bg-3: #43444a;
  --cui-color-bg-4: #4f5159;

  --cui-color-text-0: rgba(var(--cui-grey-9), 1);
  --cui-color-text-1: rgba(var(--cui-grey-9), .8);
  --cui-color-text-2: rgba(var(--cui-grey-9), .6);
  --cui-color-text-3: rgba(var(--cui-grey-9), .35);
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cui-color-bg-2);
  color: var(--cui-color-text-1);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: transparent;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}